package com.yanmaohu.yulia.bean;

public final class SetBasicSequenceGeneratorOption implements AlterIdentityColumnOption {

    private final int beginIndex;
    private final int endIndex;
    private final BasicSequenceGeneratorOption basicSequenceGeneratorOption;

    public SetBasicSequenceGeneratorOption(int beginIndex, BasicSequenceGeneratorOption basicSequenceGeneratorOption) {
        this.beginIndex = beginIndex;
        this.endIndex = basicSequenceGeneratorOption.getEndIndex();
        this.basicSequenceGeneratorOption = basicSequenceGeneratorOption;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public BasicSequenceGeneratorOption getBasicSequenceGeneratorOption() {
        return basicSequenceGeneratorOption;
    }

}
